<?php

namespace common\models\WxExposureNumber;

use Yii;

/**
 * This is the model class for table "wx_exposure_number".
 *
 * @property string $id
 * @property string $wx_public_id
 * @property string $number
 * @property string $created_date
 */
class WxExposureNumberBase extends \common\models\CommonModel\CommonModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'wx_exposure_number';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['wx_public_id', 'number', 'created_date'], 'required'],
            [['wx_public_id', 'number'], 'integer'],
            [['created_date'], 'safe'],
            [['wx_public_id', 'created_date'], 'unique', 'targetAttribute' => ['wx_public_id', 'created_date']],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'wx_public_id' => 'Wx Public ID',
            'number' => 'Number',
            'created_date' => 'Created Date',
        ];
    }
}
